package com.yourenbang.lingyun.transaction.job.handler;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import com.yourenbang.lingyun.transaction.web.service.yxy.JobTransactionYxyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Slf4j
public class DingDingPushYxyTransactionHandler {

    @Resource
    JobTransactionYxyService jobTransactionYxyService;

    /**
     * 【交易统计】
     */
    @XxlJob("dingDingPushYxyTransactionHandler")
    public ReturnT<String> transactionYxy(String paramStr) throws Exception {

        //钉钉推送交易信息
        jobTransactionYxyService.pushTransactionYxy();

        return ReturnT.SUCCESS;
    }


}
